package Demo1;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 32585
 * Date: 2024-10-06
 * Time: 12.57
 */

//如果一个类继承抽象类，需要重写这个类的抽象方法，不重写就会报错
public class Rect extends Shape{
    @Override
    public void draw(){
        System.out.println("画出来一个矩形");
    }

}
